var express = require('express');
var router = express.Router();
var aMangerCtl=require("../controls/admin/aManger");
var upload=require('../public/newsupload').upload;


router.put("/freezeAccount",aMangerCtl.freezeAccount);
router.put("/recoverAccount",aMangerCtl.recoverAccount);
router.get("/getUsers",aMangerCtl.getUsers);


// 删除评论
router.delete("/deleteUserComments",aMangerCtl.deleteUserComments);
// 删除新闻
router.delete("/deleteNews",aMangerCtl.deleteNews);
// 发布新闻
router.post("/postNews",upload.array("news_img"),aMangerCtl.postNews)

router.get("/getNesComments",aMangerCtl.getNesComments);

module.exports = router;